
#ifndef _POINT_H
#define _POINT_H

#include <iostream>
#include <cmath>
using namespace std;

class Point {
public:
	Point();                                    //Constructors
	Point(int x, int y);
	virtual ~Point();                           //Destructor
	bool equals (Point* p);                     //Checks if this point is equal to another point (Checks if X and Y are the same)
	int getX();                                 //returns X and Y
	int getY();
	double getDistanceFrom(Point* other);       //calculate distance between this point and some other point. Used by Triangle to calculate area
    void print();                               //prints point ( 0, 1 )
protected:
	int x, y;
};

#endif
